<%@page import="symptomsSearch.UnConfirmSymptoms"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>

<%@ page import="java.net.URLEncoder"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:useBean id="db" class="ctm.javacode.dbBean" />

<html>
<head>
<title>原始症狀對應表維護</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
table {
	width: 100%;
	border: 1px;
}

span {
	font-size: 28px;
	font-weight: bold;
	font-family: "標楷體";
}
</style>
<style type="text/css">
<!--
.title {
	color: #000000;
	font-size: 48px;
}
-->
</style>
<link rel="stylesheet"
	href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script
	src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<script src="./JQuery/symptomsMaintain.js"></script>
<style type="text/css">
<!--
.style2 {font-size: 20px}
-->
</style>
</head>
<body>

	<%
		/******設定******/
		request.setCharacterEncoding("UTF-8");
		response.setContentType("text/html");
		response.setCharacterEncoding("UTF-8");
		UnConfirmSymptoms test = new UnConfirmSymptoms();
		/******設定******/
	%>

	<table width="100%">

		<tr>

			<td align="center">
					<div align="left">				
					<input type="button"
						value="原始症狀對應表維護"
						onclick="self.location.href='symptomsMaintain.jsp'" /> 
					<input
						type="button" value="關鍵字詞對應表維護"
						onClick="self.location.href='keywordMaintain.jsp'" />
							<input
						type="button" value="症狀語義網維護"
						onClick="self.location.href='semanticNetworkMaitain.jsp'" />
							<input
						type="button" value="標準症狀對應表維護"
						onClick="self.location.href='standardizedSymptomsMaintain.jsp'" />
						<input type="button" value="原始症狀搜尋"
						onclick="self.location.href='symptomsSearch.jsp'" /> 
						
				</div>
			</td>

		</tr>
	</table>
	<table width="100%">
		<tr>

			<td align="center"><span class="title">中醫症狀詞庫-原始症狀對應表維護</span></br></td>

		</tr>
		
<tr>

			<td align="center">
			<input name="button" type="button" id="ImportTable" value="對應表匯入" />
			<input name="button" type="button" id="ExortTable" value="對應表匯出" />
			
			
			</td>

		</tr>

	</table>




	<table width="100%">

		<tr>
			<td width="45%" height="284">

				<div align="center">
					<span>原始症狀</span><br> <textarea style="font-size: 24px"
							cols="40" rows="7" id="original_text_partial"></textarea> <br />
				</div>
			</td>

			<td width="10%">
				<div align="center">
					<input id="clickBtn" type="button" value="-&gt;" /><br />
				</div>
			</td>


			<td width="45%">

				<div align="center">
					<span>標準症狀</span><br> <textarea style="font-size: 24px"
							cols="40" rows="7" id="standard_text_partial"></textarea>
				</div>
			</td>
		</tr>

	</table>
	<table width="100%">
		<tr>
			<td><span class="style2">症狀類別: </span>
			  <select id="SymptomsClass"  style="font-size:18px">
					<option>請選擇</option>
					<option value="排泄物">排泄物</option>
					<option value="分泌物">分泌物</option>
					<option value="呼吸">呼吸</option>
					<option value="耳鼻喉">耳鼻喉</option>
					<option value="口齒">口齒</option>
					<option value="神志">神志</option>
					<option value="寒熱">寒熱</option>
					<option value="腰背">腰背</option>
					<option value="頭面">頭面</option>
			</select> 
			  <span class="style2"> 
			  症狀: </span> 
			  <select id="SymptomsClasstest"   style="font-size:18px">
		  </select> 
		  <input name="button" type="button" id="submit_1"
				value="確認" /></td>




		</tr>


	</table>
	<div align="center"></div>

	<div align="left">
		<input name="button" type="button" id="UpdateToDatabase" value="新增" />
		<input name="button" type="button" id="ModifiedDatabase" value="修改" />
		<input name="button" type="button" id="DeleteDatabase" value="刪除" />
		<input name="button" type="button" id="reset" value="清空" />
	</div>


	<table width="100%">
		<tr>
			<td width="10%"></td>
			<td width="5%"></td>
			<td width="15%"><span>原始症狀</span></td>
			<td><span>標準症狀</span></td>

		</tr>


	</table>





	<%
		List<String> testList_ori = new ArrayList<String>();
		List<String> testList = new ArrayList<String>();

		testList_ori = test.ShowUnConfirmOriginalSymptoms();
		testList = test.ShowUnConfirmSymptoms();

		for (int i = 0; i < testList.size(); i++) {
	%>

	<table width="100%">
		<tr>

			<td width="10%"></td>
			<td width="5%"><input
				name="checkbx" type="radio"
				value="<%=testList_ori.get(i)%>#<%=testList.get(i)%>"/></td>
			<td width="15%" bordercolor="#F0F0F0" bgcolor="#CCCCCC"><%=testList_ori.get(i)%></td>	
			<td ><%=testList.get(i)%></td>
			<td></td>
		</tr>


	</table>


	<%
		}
	%>



	<div id="dialog-modified_confirm" title="修改確認">
		<p>
			<span class="ui-icon ui-icon-alert" style="float: left;"></span>確定要修改?
		</p>
	</div>
	<div id="dialog-delete_confirm" title="刪除確認">
		<p>
			<span class="ui-icon ui-icon-alert" style="float: left;"></span>確定要刪除?
		</p>
	</div>
	<div id="dialog-add_confirm" title="新增確認">
		<p>
			<span class="ui-icon ui-icon-alert" style="float: left;"></span>確定要新增?
		</p>
	</div>
	



</body>
</html>